package com.qyhl.question.question.challenge;


import com.qyhl.webtv.commonlib.entity.question.ClassicShareBean;
import com.qyhl.webtv.commonlib.entity.question.QuestionChallengeBean;

public interface QuestionChallengeContract {
    interface QuestionChallengeView {
        void startSuccess(QuestionChallengeBean bean);

        void startError(String msg);

        void submitSuccess(QuestionChallengeBean bean);

        void submitError(String msg);

        void timeOutSuccess(QuestionChallengeBean bean);

        void timeOutError(String msg);

        void shareResult(ClassicShareBean bean, String msg);
    }

    interface QuestionChallengePresenter {
        void startChallenge(String username, String subjectId);

        void submit(int recordId, int questionId, String answer, int seconds);

        void submitTimeOut(int recordId, int questionId, int seconds);

        void doShare(int recordId);

        void startSuccess(QuestionChallengeBean bean);

        void startError(String msg);

        void submitSuccess(QuestionChallengeBean bean);

        void submitError(String msg);

        void timeOutSuccess(QuestionChallengeBean bean);

        void timeOutError(String msg);

        void shareResult(ClassicShareBean bean, String msg);
    }

    interface QuestionChallengeModel {
        void startChallenge(String username, String subjectId);

        void submit(int recordId, int questionId, String answer, int seconds);

        void submitTimeOut(int recordId, int questionId, int seconds);

        void doShare(int recordId);
    }
}
